package Units;

import java.util.ArrayList;

import com.jme3.scene.Node;

public class Models {
	private Node modelsNode;
	private Creatures creatures;
	private ArrayList<Creat> creatList;
	private int x;
	private int y;
	
	public Models(Node modelsNode, int x, int y, Creatures creatures) {
		this.modelsNode = modelsNode;
		this.x = x;
		this.y = y;
		this.creatures = creatures;
		creatList = new ArrayList<Creat>();
		
	    if (x == 0 && y == 1) {
			creatList.add(new Creat(modelsNode, x, y, creatures.getImp()));
	    }
	}
	
	public void createImp() {
		creatList.add(new Creat(modelsNode, x, y, creatures.getImp()));
	}
	
	public Node getNode() {
		return modelsNode;
	}
}
